package io.gps.datatransfer.command;

import org.apache.mina.core.buffer.IoBuffer;

public class GpsMsg {
    private int msgid;
    private int msgSeri;
    private String sim;
    private IoBuffer src;

    /**
     * 消息主对象
     * @param msgid 消息id
     * @param sim  设备唯一认证代码
     * @param srcdata 原始数据包
     */
    public GpsMsg(int msgid,int msgSeri, String sim,IoBuffer srcdata) {
        this.msgid = msgid;
        this.msgSeri = msgSeri;
        this.sim = sim;
        this.src = srcdata;
    }



    public int getMsgid() {
        return msgid;
    }


    public String getSim() {
        return sim;
    }

    public IoBuffer getSrc() {
        return src;
    }

    public int getMsgSeri() {
        return msgSeri;
    }
}
